package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.SalaryBasicExample.E_COMPANY_ID;
import static org.jsola.hr.example.SalaryBasicExample.E_EMP_ID;
import static org.jsola.hr.example.SalaryBasicExample.E_MEAL_SUBSIDY;
import static org.jsola.hr.example.SalaryBasicExample.E_REASON;
import static org.jsola.hr.example.SalaryBasicExample.E_REMARK;
import static org.jsola.hr.example.SalaryBasicExample.E_SALARY_BASIC;
import static org.jsola.hr.example.SalaryBasicExample.E_SALARY_PERFORMANCE;
import static org.jsola.hr.example.SalaryBasicExample.E_SALARY_TOTAL;
import static org.jsola.hr.example.SalaryBasicExample.E_TRAFFIC_SUBSIDY;
import static org.jsola.hr.example.SalaryBasicExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.SalaryBasicExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.SalaryBasicExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.SalaryBasicExample.M_REASON_MAX;
import static org.jsola.hr.example.SalaryBasicExample.M_REMARK_MAX;
import static org.jsola.hr.example.SalaryBasicExample.N_COMPANY_ID;
import static org.jsola.hr.example.SalaryBasicExample.N_EMP_ID;
import static org.jsola.hr.example.SalaryBasicExample.N_MEAL_SUBSIDY;
import static org.jsola.hr.example.SalaryBasicExample.N_REASON;
import static org.jsola.hr.example.SalaryBasicExample.N_REMARK;
import static org.jsola.hr.example.SalaryBasicExample.N_SALARY_BASIC;
import static org.jsola.hr.example.SalaryBasicExample.N_SALARY_PERFORMANCE;
import static org.jsola.hr.example.SalaryBasicExample.N_SALARY_TOTAL;
import static org.jsola.hr.example.SalaryBasicExample.N_TRAFFIC_SUBSIDY;

/**
 * 员工薪资表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【员工薪资表】的参数")
@Data
public class SalaryBasicUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_SALARY_BASIC, example = E_SALARY_BASIC)
    private Integer salaryBasic;

    @ApiModelProperty(notes = N_TRAFFIC_SUBSIDY, example = E_TRAFFIC_SUBSIDY)
    private Integer trafficSubsidy;

    @ApiModelProperty(notes = N_MEAL_SUBSIDY, example = E_MEAL_SUBSIDY)
    private Integer mealSubsidy;

    @ApiModelProperty(notes = N_SALARY_PERFORMANCE, example = E_SALARY_PERFORMANCE)
    private Integer salaryPerformance;

    @ApiModelProperty(notes = N_REASON, example = E_REASON)
    @Length(max = 255, message = M_REASON_MAX)
    private String reason;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 1000, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_SALARY_TOTAL, example = E_SALARY_TOTAL)
    private Integer salaryTotal;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;


}

